//
//  MyInviteTableViewCell.m
//  LPTClient
//
//  Created by apple on 2018/12/8.
//  Copyright © 2018 zhaodd. All rights reserved.
//

#import "MyInviteTableViewCell.h"

@interface MyInviteTableViewCell ()

@property (nonatomic, weak) IBOutlet UILabel *phoneLab;
@property (nonatomic, weak) IBOutlet UILabel *priceLab;
@property (nonatomic, weak) IBOutlet UILabel *timeLab;

@end

@implementation MyInviteTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

- (void)refreshWithDic:(NSDictionary *)dict
{
    NSString *time = [dict valueForKey:@"created_at"];
    NSString *price = [dict valueForKey:@"bonus"];
    NSString *phone = [[dict valueForKey:@"joiner"] valueForKey:@"mobile"];
    
    self.phoneLab.text = phone;
    self.priceLab.text = price;
    self.timeLab.text = time;
    
}

- (void)refreshWithCommitDic:(NSDictionary *)dict// 评价的走这里
{
    NSString *time = [dict valueForKey:@"content"];
    NSString *price = [[dict valueForKey:@"contestant"] valueForKey:@"score"];
    NSString *phone = [[dict valueForKey:@"user"] valueForKey:@"name"];
    
    self.phoneLab.text = phone;
    self.priceLab.text = [NSString stringWithFormat:@"%@", price];
    self.timeLab.text = time;
}


@end


